﻿@model BrnMall.Web.StoreAdmin.Models.GroupBuyModel

@section header{
    <title>添加团购活动-团购活动</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.unobtrusive.js"></script>
<script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>

}
@section body{
    <h1 class="rightH1">
		微信小程序 &gt; 促销活动 &gt; 团购活动 &gt; <span class="rightH1-cur">添加团购活动</span>
        <div class="right">
            <a href="@Url.Action("GroupBuyList")" class="menuBT"><img src="/admin_store/images/goback.jpg" />返回列表</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    <div class="addTable">
        @using (Html.BeginForm("SaveGroupBuy", "Promotion",FormMethod.Post))
        {
            @Html.HiddenFor(x=>x.Id)
            <table width="100%">
                
                
                <tr>
                    <td width="220px" align="right">
                        拼团名称：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.Name, new { @class = "input", size = "35" })<span style="color: #9299b1">仅后台展示</span>@Html.ValidationMessageFor(x => x.Name)
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        拼团人数：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.LimitBuyerCount, new { @class = "input", size = "15" })@Html.ValidationMessageFor(x => x.LimitBuyerCount)
                    </td>
                </tr>
                <tr style="display:none">
                    <td align="right">
                        拼团时限：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.LimitHour, new { @class = "input", size = "15" })<span>小时</span>@Html.ValidationMessageFor(x => x.LimitHour)
                    </td>
                </tr>
                <tr>
                    <td align="right" >
                        活动开始时间：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.StartTime, new { @class = "input", size = "35",onfocus = "WdatePicker({el:'StartTime'})" })@Html.ValidationMessageFor(x => x.StartTime)
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        活动结束时间：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.EndTime, new { @class = "input", size = "35", onfocus = "WdatePicker({el:'EndTime'})" })@Html.ValidationMessageFor(x => x.EndTime)
                    </td>
                </tr>
                <tr style="display:none">
                    <td align="right" >
                        每位用户可同时进行的团数：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.LimitJoinCount, new { @class = "input", size = "35" })<span style="color: #9299b1">为保证商家利益，请对团数进行限制。注：已成功或已失败的团不计入同时进行的团数。</span>@Html.ValidationMessageFor(x => x.LimitJoinCount)
                    </td>
                </tr>
                <tr style="display:none">
                    <td align="right" >
                        每位用户每次参团时可购买件数：
                    </td>
                    <td>
                        @Html.TextBoxFor(x => x.LimitBuyCount, new { @class = "input", size = "35" })<span style="color: #9299b1">为保证商家利益，请对用户参团时可购买件数进行限制。</span>@Html.ValidationMessageFor(x => x.LimitBuyCount)
                    </td>
                </tr>
                <tr>
                    <td width="220px" align="right">
                        说明：
                    </td>
                    <td>
                        <span style="color: red">信息一旦保存，就不能修改</span>
                    </td>
                </tr>
            </table>
            <table width="100%">
                <tr>
                    <td width="180px" align="right" >
                        &nbsp;
                    </td>
                    <td>
                        <a href="" class="addBt" id="sumbitBut">
                            <img src="/admin_store/images/submit.jpg" />
                        </a>
                        <script type="text/javascript">
                            $(function () {
                                $("#sumbitBut").click(function () {
                                    $("form:first").submit();
                                    return false;
                                })
                            });
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        }
    </div>
}